﻿using Microsoft.AspNetCore.Authentication.OAuth;
using PersonalWebsite.Application;
using PersonalWebsite.Core.DependencyInjection;
using PersonalWebsite.Shell.Extensions;
using System.Reflection;
using Volo.Abp.Modularity;

namespace PersonalWebsite.Shell;

[DependsOn(typeof(ApplicationModule))]
internal sealed class StartupModule : AbpModule
{
    public override void PreConfigureServices(ServiceConfigurationContext context)
    {
    }

    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services
            .AddDefaultSwagger("v1", "Website", Assembly.GetExecutingAssembly())
            .AddEndpointsApiExplorer()
            .AddHttpContextAccessor()
            .AddProblemDetails()
            .AddHttpClient()
            .AddControllers();
    }
}
